﻿@model Tesis2.Models.Direccion

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Direccion</legend>

        @Html.HiddenFor(model => model.DireccionID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ZonaID, "Zona")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ZonaID", String.Empty)
            @Html.ValidationMessageFor(model => model.ZonaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DepartamentoID, "Departamento")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DepartamentoID", String.Empty)
            @Html.ValidationMessageFor(model => model.DepartamentoID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ProvinciaID, "Provincia")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ProvinciaID", String.Empty)
            @Html.ValidationMessageFor(model => model.ProvinciaID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DistritoID, "Distrito")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DistritoID", String.Empty)
            @Html.ValidationMessageFor(model => model.DistritoID)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
